import request from "@/utils/request";

// 工作目标完成情况
export function getElectronicTotal(data) {
  return request({
    url: "/v1/assignment/images-statistic/electronic-total",
    method: "POST",
    data,
  });
}

// 平均交付天数
export function getAverageDay(data) {
  return request({
    url: "/v1/assignment/images-statistic/average-day",
    method: "POST",
    data,
  });
}

// 任务类型需求数量
export function getTaskTypeCount(data) {
  return request({
    url: "/v1/assignment/images-statistic/task-type-count",
    method: "POST",
    data,
  });
}

// 老品各等级平均交付天数
export function getOldProductDay(data) {
  return request({
    url: "/v1/assignment/images-statistic/old-product-day",
    method: "POST",
    data,
  });
}

// 老品各等级任务数
export function getOldTaskTypeCount(data) {
  return request({
    url: "/v1/assignment/images-statistic/old-task-type-count",
    method: "POST",
    data,
  });
}

// 详情列表
export function getDetailList(data) {
  return request({
    url: "/v1/assignment/images-statistic/detail-list",
    method: "POST",
    data,
  });
}

// 环境电子-绩效统计
export function getImagesStatisticPerformance(data) {
  return request({
    url: "/v1/assignment/images-statistic/performance",
    method: "POST",
    data,
  });
}

// 环境电子-目标情况统计
export function getImagesStatisticTargetDetail(data) {
  return request({
    url: "/v1/assignment/images-statistic/target-detail",
    method: "POST",
    data,
  });
}

// 环境电子-目标分布占比
export function getImagesStatisticTargetPercent(data) {
  return request({
    url: "/v1/assignment/images-statistic/target-percent",
    method: "POST",
    data,
  });
}